package com.dhcc.bpm.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.system.entity.Dict;
import com.dhcc.bpm.modules.system.vo.DictVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName DictMapper
 * @Description Mapper 接口
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public interface DictMapper extends BaseMapper<Dict> {

	/**
	 * @Description 自定义分页
	 * @Author sjm
	 * @Date 10:12 2020/2/22 0022
	 * @param page
	 * @param dict
	 * @return java.util.List<com.dhcc.bpm.modules.system.vo.DictVO>
	 **/
	List<DictVO> selectDictPage(IPage page, DictVO dict);


	List<Dict> selectDictList(DictVO dict);
	/**
	 * @Description 获取字典表对应中文
	 * @Author sjm
	 * @Date 10:13 2020/2/22 0022
	 * @param code
	 * @param dictKey
	 * @return java.lang.String
	 **/
	String getValue(String code, String dictKey);

	/**
	 * @Description 获取字典表
	 * @Author sjm
	 * @Date 10:13 2020/2/22 0022
	 * @param code
	 * @return java.util.List<com.dhcc.bpm.modules.system.entity.Dict>
	 **/
	List<Dict> getList(String code);

	/**
	 * @Description 获取树形节点
	 * @Author sjm
	 * @Date 10:13 2020/2/22 0022
	 * @param
	 * @return java.util.List<com.dhcc.bpm.modules.system.vo.DictVO>
	 **/
	List<DictVO> tree();

	boolean deleteById(@Param("ids") List<Long>  ids);

}
